package com.hancheng.commoncloud.framework.result.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * API 统一返回状态码
 *
 * @author: 金笛
 * @date 2022/1/23 12:40
 */
@Getter
@AllArgsConstructor
public enum ResultCode implements ErrorCode {
    /**
     * 成功
     */
    SUCCESS(1, "成功"),
    /**
     * 失败
     */
    FAILED(0, "失败"),

    // 用户错误码: 11001-11999
    USER_NOT_LOGGED_IN(11001, "用户未登录，请重新登录"),
    ;

    private final int code;
    private final String message;
}
